package cn.kzgg.ymcc.Exception;

import lombok.Data;

//全局异常
@Data
public class GlobleException extends RuntimeException{

    private String code;
    /**--------------------------------------------------------
     传一个错误信息给异常对象
     --------------------------------------------------------**/
    public GlobleException(String message){
        super(message);
    }

    public GlobleException(String message,String code){
        super(message);
        this.code=code;
    }
}